package com.softline.documentsmall.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "Cloud-Auth", contextId = "passportServiceClient", fallbackFactory = PassportServiceFallback.class)
public interface PassportService {

    @GetMapping("/passport/checkSSO")
    JSONObject checkSSO(@RequestParam("passport") String passport);

}
